package com.cloud.lan.api;

import com.cloud.lan.api.dto.req.BaseReq;
import com.cloud.lan.entity.base.ListResponse;
import com.cloud.lan.service.ILanBadgeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by zhouquan on 2022/5/21.
 */
@Slf4j
@RestController
@RequestMapping(value = {"/v1/badge/"}, method = {RequestMethod.GET, RequestMethod.POST}, consumes = {"*/*"}, produces = {"application/json"})
public class LanBadgeApi {

    @Resource
    private ILanBadgeService iLanBadgeService;

    @RequestMapping("queryUserBadges")
    public ListResponse<Object> queryUserBadges(@RequestHeader(BaseReq.ut) String token) {
        return iLanBadgeService.queryUserBadges(token);
    }
}
